<?php
include("conn.php");

$name = $_POST['name'];
$time = $_POST['time'];
$score = $_POST['score'];

if( !($name && $time && $score) && !$conn) die("Cannot be processed");

$insert = "INSERT INTO score(name,time,score) VALUES('$name',$time,$score)";

if($conn->query($insert) === TRUE){
    echo 'success';
}